#pragma once
#include "RBTree.h"
#include "Myset.h"
#include "Mymap.h"
using namespace std;
int main()
{
	/*jib::set<int> st;
	int a[] = { 8,5,4,1,2,3,9,7,6 };
	for (auto& e : a)
	{
		st.insert(e);
	}
	for (auto& e : st)
	{
		cout << e;
	}*/
	jib::map<int,int> st;
	int a[] = { 8,5,4,1,2,3,9,7,6 };
	for (auto e : a)
	{
		st.insert(make_pair(e,e));
	}
	auto e = st.Find(6);

	for (auto it=e; it != st.begin(); --it)
	{
		cout << it->first << " ";
	}
	cout << endl;
	/*for (auto& e : st)
	{
		cout << e.first<<" ";
	}*/
	return 0;
}